<?php


namespace Api\Controller;


/** 
 * 消息 
  
 
 * @author Legend. <xcx_legender@qq.com>
 * @param 
 * @return 
 */

class MessageController extends UserBaseController 
{

	/** 
	 * 获取用户最新消息信息  
	 * @author Legend. <xcx_legender@qq.com>
	 * @param UID
	 * @return  $data['new'] = 0 | n
	 */
	
	public function getNew()
	{
		$event = A('Message', 'Event');
		$data['new'] = $event->getNewCount(UID);
		$this->success('', $data);
	}


/*	public function send()
	{
		$event = A('Message', 'Event');
		$event->send('zan', 5, UID, 16);
	}

	public function clear()
	{
		$event = A('Message', 'Event');
		$event->setRead(UID);
	}
*/
}